package com.tron.dobest.mybatisplus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.tron.dobest.common.BaseEntity;
import lombok.Data;
import lombok.experimental.Accessors;

@Data
@TableName("user")
@Accessors(chain = true)
public class User extends BaseEntity {

    @TableId(type = IdType.ASSIGN_UUID)
    private String id;
    @TableField("username")
    private String userName;
    private String name;
    private Integer age;
    private Double balance;

}
